#ifndef HTML_DOCUMENT_H
#define HTML_DOCUMENT_H

typedef union HtmlNode_ HtmlNode;

typedef const char * HtmlText;

typedef struct
{
    const char *name;
    size_t childNodesNumber;
    HtmlNode *childNodes;
} HtmlTag;

union HtmlNode_
{
    HtmlText text;
    HtmlTag tag;
};

typedef struct
{
    HtmlNode *root;
} HtmlDocument;


#endif // HTML_DOCUMENT_H
